import 'package:flutter/material.dart';

class MyImageButton extends StatelessWidget {
   final Widget image;
   final String title;
   final String tip;
  MyImageButton({required this.image, required this.title, required this.tip});


  @override
  Widget build(BuildContext context) {
    //水波纹效果
    return InkWell(
      onTap: ()=>{
        print('点击')
      },
      splashColor: Colors.grey,
      //层叠布局
      child: Stack(
        children: <Widget>[
          Center(
          child: Column(
            mainAxisSize: MainAxisSize.min,
            children: <Widget>[
              SizedBox(
                height: 12,
              ),
              image,
              SizedBox(
                height: 5,
              ),
              Text(title,style: TextStyle(fontSize: 14),),
            ],

      ),
      ),



        ],



      ),

    );
  }
}
